package com.eshop.modules.order.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class OrderParam implements Serializable
{
    @ApiModelProperty("地址ID")
    private String addressId;
    @ApiModelProperty("砍价产品ID")
    private String bargainId;
    @ApiModelProperty("拼团ID")
    private String combinationId;
    @ApiModelProperty("优惠券ID")
    private String couponId;
    @ApiModelProperty("来源")
    private String from;
    @Size(max = 200, message = "长度超过了限制")
    @ApiModelProperty("备注")
    private String mark;
    @NotBlank(message = "请选择支付方式")
    @ApiModelProperty("支付方式")
    private String payType;
    @ApiModelProperty("门店电话")
    private String phone;
    @ApiModelProperty("拼团id 0没有拼团")
    private String pinkId;
    @ApiModelProperty("门店联系人")
    private String realName;
    @ApiModelProperty("秒杀产品ID")
    private String seckillId;
    @ApiModelProperty("配送方式 1=快递 ，2=门店自提")
    private String shippingType;
    @ApiModelProperty("使用积分 1-表示使用")
    private String useIntegral;
    @ApiModelProperty("支付渠道(0微信公众号1微信小程序) ")
    private String isChannel;
    @ApiModelProperty("门店ID")
    private String storeId;
    
    public String getAddressId() {
        return this.addressId;
    }
    
    public String getBargainId() {
        return this.bargainId;
    }
    
    public String getCombinationId() {
        return this.combinationId;
    }
    
    public String getCouponId() {
        return this.couponId;
    }
    
    public String getFrom() {
        return this.from;
    }
    
    public String getMark() {
        return this.mark;
    }
    
    public String getPayType() {
        return this.payType;
    }
    
    public String getPhone() {
        return this.phone;
    }
    
    public String getPinkId() {
        return this.pinkId;
    }
    
    public String getRealName() {
        return this.realName;
    }
    
    public String getSeckillId() {
        return this.seckillId;
    }
    
    public String getShippingType() {
        return this.shippingType;
    }
    
    public String getUseIntegral() {
        return this.useIntegral;
    }
    
    public String getIsChannel() {
        return this.isChannel;
    }
    
    public String getStoreId() {
        return this.storeId;
    }
    
    public void setAddressId(final String addressId) {
        this.addressId = addressId;
    }
    
    public void setBargainId(final String bargainId) {
        this.bargainId = bargainId;
    }
    
    public void setCombinationId(final String combinationId) {
        this.combinationId = combinationId;
    }
    
    public void setCouponId(final String couponId) {
        this.couponId = couponId;
    }
    
    public void setFrom(final String from) {
        this.from = from;
    }
    
    public void setMark(final String mark) {
        this.mark = mark;
    }
    
    public void setPayType(final String payType) {
        this.payType = payType;
    }
    
    public void setPhone(final String phone) {
        this.phone = phone;
    }
    
    public void setPinkId(final String pinkId) {
        this.pinkId = pinkId;
    }
    
    public void setRealName(final String realName) {
        this.realName = realName;
    }
    
    public void setSeckillId(final String seckillId) {
        this.seckillId = seckillId;
    }
    
    public void setShippingType(final String shippingType) {
        this.shippingType = shippingType;
    }
    
    public void setUseIntegral(final String useIntegral) {
        this.useIntegral = useIntegral;
    }
    
    public void setIsChannel(final String isChannel) {
        this.isChannel = isChannel;
    }
    
    public void setStoreId(final String storeId) {
        this.storeId = storeId;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OrderParam)) {
            return false;
        }
        final OrderParam other = (OrderParam)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$addressId = this.getAddressId();
        final Object other$addressId = other.getAddressId();
        Label_0065: {
            if (this$addressId == null) {
                if (other$addressId == null) {
                    break Label_0065;
                }
            }
            else if (this$addressId.equals(other$addressId)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$bargainId = this.getBargainId();
        final Object other$bargainId = other.getBargainId();
        Label_0102: {
            if (this$bargainId == null) {
                if (other$bargainId == null) {
                    break Label_0102;
                }
            }
            else if (this$bargainId.equals(other$bargainId)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$combinationId = this.getCombinationId();
        final Object other$combinationId = other.getCombinationId();
        Label_0139: {
            if (this$combinationId == null) {
                if (other$combinationId == null) {
                    break Label_0139;
                }
            }
            else if (this$combinationId.equals(other$combinationId)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$couponId = this.getCouponId();
        final Object other$couponId = other.getCouponId();
        Label_0176: {
            if (this$couponId == null) {
                if (other$couponId == null) {
                    break Label_0176;
                }
            }
            else if (this$couponId.equals(other$couponId)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$from = this.getFrom();
        final Object other$from = other.getFrom();
        Label_0213: {
            if (this$from == null) {
                if (other$from == null) {
                    break Label_0213;
                }
            }
            else if (this$from.equals(other$from)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$mark = this.getMark();
        final Object other$mark = other.getMark();
        Label_0250: {
            if (this$mark == null) {
                if (other$mark == null) {
                    break Label_0250;
                }
            }
            else if (this$mark.equals(other$mark)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$payType = this.getPayType();
        final Object other$payType = other.getPayType();
        Label_0287: {
            if (this$payType == null) {
                if (other$payType == null) {
                    break Label_0287;
                }
            }
            else if (this$payType.equals(other$payType)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$phone = this.getPhone();
        final Object other$phone = other.getPhone();
        Label_0324: {
            if (this$phone == null) {
                if (other$phone == null) {
                    break Label_0324;
                }
            }
            else if (this$phone.equals(other$phone)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$pinkId = this.getPinkId();
        final Object other$pinkId = other.getPinkId();
        Label_0361: {
            if (this$pinkId == null) {
                if (other$pinkId == null) {
                    break Label_0361;
                }
            }
            else if (this$pinkId.equals(other$pinkId)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$realName = this.getRealName();
        final Object other$realName = other.getRealName();
        Label_0398: {
            if (this$realName == null) {
                if (other$realName == null) {
                    break Label_0398;
                }
            }
            else if (this$realName.equals(other$realName)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$seckillId = this.getSeckillId();
        final Object other$seckillId = other.getSeckillId();
        Label_0435: {
            if (this$seckillId == null) {
                if (other$seckillId == null) {
                    break Label_0435;
                }
            }
            else if (this$seckillId.equals(other$seckillId)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$shippingType = this.getShippingType();
        final Object other$shippingType = other.getShippingType();
        Label_0472: {
            if (this$shippingType == null) {
                if (other$shippingType == null) {
                    break Label_0472;
                }
            }
            else if (this$shippingType.equals(other$shippingType)) {
                break Label_0472;
            }
            return false;
        }
        final Object this$useIntegral = this.getUseIntegral();
        final Object other$useIntegral = other.getUseIntegral();
        Label_0509: {
            if (this$useIntegral == null) {
                if (other$useIntegral == null) {
                    break Label_0509;
                }
            }
            else if (this$useIntegral.equals(other$useIntegral)) {
                break Label_0509;
            }
            return false;
        }
        final Object this$isChannel = this.getIsChannel();
        final Object other$isChannel = other.getIsChannel();
        Label_0546: {
            if (this$isChannel == null) {
                if (other$isChannel == null) {
                    break Label_0546;
                }
            }
            else if (this$isChannel.equals(other$isChannel)) {
                break Label_0546;
            }
            return false;
        }
        final Object this$storeId = this.getStoreId();
        final Object other$storeId = other.getStoreId();
        if (this$storeId == null) {
            if (other$storeId == null) {
                return true;
            }
        }
        else if (this$storeId.equals(other$storeId)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof OrderParam;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $addressId = this.getAddressId();
        result = result * 59 + (($addressId == null) ? 43 : $addressId.hashCode());
        final Object $bargainId = this.getBargainId();
        result = result * 59 + (($bargainId == null) ? 43 : $bargainId.hashCode());
        final Object $combinationId = this.getCombinationId();
        result = result * 59 + (($combinationId == null) ? 43 : $combinationId.hashCode());
        final Object $couponId = this.getCouponId();
        result = result * 59 + (($couponId == null) ? 43 : $couponId.hashCode());
        final Object $from = this.getFrom();
        result = result * 59 + (($from == null) ? 43 : $from.hashCode());
        final Object $mark = this.getMark();
        result = result * 59 + (($mark == null) ? 43 : $mark.hashCode());
        final Object $payType = this.getPayType();
        result = result * 59 + (($payType == null) ? 43 : $payType.hashCode());
        final Object $phone = this.getPhone();
        result = result * 59 + (($phone == null) ? 43 : $phone.hashCode());
        final Object $pinkId = this.getPinkId();
        result = result * 59 + (($pinkId == null) ? 43 : $pinkId.hashCode());
        final Object $realName = this.getRealName();
        result = result * 59 + (($realName == null) ? 43 : $realName.hashCode());
        final Object $seckillId = this.getSeckillId();
        result = result * 59 + (($seckillId == null) ? 43 : $seckillId.hashCode());
        final Object $shippingType = this.getShippingType();
        result = result * 59 + (($shippingType == null) ? 43 : $shippingType.hashCode());
        final Object $useIntegral = this.getUseIntegral();
        result = result * 59 + (($useIntegral == null) ? 43 : $useIntegral.hashCode());
        final Object $isChannel = this.getIsChannel();
        result = result * 59 + (($isChannel == null) ? 43 : $isChannel.hashCode());
        final Object $storeId = this.getStoreId();
        result = result * 59 + (($storeId == null) ? 43 : $storeId.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "OrderParam(addressId=" + this.getAddressId() + ", bargainId=" + this.getBargainId() + ", combinationId=" + this.getCombinationId() + ", couponId=" + this.getCouponId() + ", from=" + this.getFrom() + ", mark=" + this.getMark() + ", payType=" + this.getPayType() + ", phone=" + this.getPhone() + ", pinkId=" + this.getPinkId() + ", realName=" + this.getRealName() + ", seckillId=" + this.getSeckillId() + ", shippingType=" + this.getShippingType() + ", useIntegral=" + this.getUseIntegral() + ", isChannel=" + this.getIsChannel() + ", storeId=" + this.getStoreId() + ")";
    }
}
